<template>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'FileManag',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        s_tree_firm: {},
        s_tree_docs: {},
        s_menu_pf: {},
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/systemadmin/FileAdminAction/fileManag?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
          this["s_tree_docs"] = this.loadTreeTable(this["s_tree_docs"], "folder_id", "parent_id");
          this["s_tree_firm"] = this.loadTreeTable(this["s_tree_firm"], "folder_id", "parent_id");
          this["s_menu_pf"] = this.loadTreeTable(this["s_menu_pf"], "id", "pid");
        })
      },
    },
  }
</script>
